<?php get_header(); ?>

<ul id="pages">
    <li class="page_item"><a href="/blog"><strong>Accueil</strong></a></li>
    <?php wp_list_pages('exclude=89&sort_column=menu_order&title_li=&depth=1'); ?>
    <!--<li class="page_item"><a href="stats.php" title="Statistiques"><strong>Statistiques</strong></a></li>-->
</ul>
<?php if ( function_exists('is_page_or_child') && is_page_or_child('72') ) : ?>
<ul id="subpages">
    <li class="page_item"> </li>
    <?php wp_list_pages('sort_column=menu_order&title_li=&child_of=72'); ?>
</ul>
<?php endif; ?>
<?php if ( function_exists('is_page_or_child') && is_page_or_child('111') ) : ?>
<ul id="subpages">
    <li class="page_item"> </li>
    <?php wp_list_pages('sort_column=menu_order&title_li=&child_of=111'); ?>
</ul>
<?php endif; ?>

<div id="sidebar">
    <?php get_sidebar(); ?>
</div>

<div id="content">
    <?php if (have_posts()) : ?>
    <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
        <?php while (have_posts()) : the_post(); ?>
            <div class="post">
                <h2 id="post-<?php the_ID(); ?>"><span><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></span></h2>
                
                <div class="entry">
                    <?php the_content('Read the entire entry ?'); ?>
                </div>
        
                <div class="relinfo">
                    Le <?php the_time('j F Y'); ?> à <?php the_time('H:i'); ?>
                    • Catégorie <?php the_category(', '); ?>
                    • Ecrit par <b><?php the_author('login', display); ?></b>
                    <?php edit_post_link('Editer',' • ',''); ?>
                    <ul>
                        <li class="permalink"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">Permalink</a></li>
                        <li class="commentslink"><?php comments_popup_link('Aucun commentaire    (Ajouter)', 'Commentaires [1]    (Ajouter)', 'Commentaires [%]    (Ajouter)'); ?></li>
                    </ul>
                </div>
                <!-- <?php trackback_rdf(); ?> -->
                <?php $withcomments = true; ?>
                <?php if ( is_single() ) : ?>
                <p align="center"><?php previous_post('« «      %', '', 'yes'); ?><?php next_post('   |   %      » » ', '', 'yes'); ?></p>
                <?php endif; ?>
                <?php comments_template(); ?>

            </div>
        <?php endwhile; ?>
    <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
    <?php else : ?>
        <h2><span>Not Found</span></h2>
        <p><strong>SEARCH RESULTS</strong></p>
        <p><?php _e("Sorry, no matches were found."); ?></p>    
    <?php endif; ?>
</div>

<?php get_footer(); ?>
